from wxpita import *

f = SizedFrame(size=(300, 400)) [
    StaticText(label='I am StaticText'),
    Button(name='btn', label='I am Button'),
    ListBox(name='lb', size=(160, 90), expand=True, proportion=1,
            choices=[unichr(i) for i in range(35299, 35345)]),
    Choice(name='chc', size=(200, -1),
           choices=('cat','bat','rat','fat','sat','vat','pat')),
    ComboBox(name='cb', size=(180, -1), choices=('yoyo',)),
]

@f.Init
def _():    
    f.btn.Enable(False)

    f.lb.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.NORMAL))
    f.lb.Select(34)

    f.chc.Select(4)

    for v in ('abba', 'bola', 'hula', 'ruby', 'pore', 'vole'):
        f.cb.Append(v)

    f.cb.SetSelection(1)

f.Show('Init Callback Example')
